"use strict";
var list = [
    {
        title: '香蕉',
        price: 18,
        num: 1,
        ischecked: true,
        shop: '每日优鲜',
        mark: '3点收'
    }
];
// let p2:Product = {
//     title:'苹果',
//     price:18,
//     num:1,
//     ischecked:true,
//     desc:'脆甜'
// }
// let p3:Product = {
//     title:'香蕉',
//     price:18,
//     num:1,
//     ischecked:true,
//     shop:'每日优鲜',
//     mark:'3点收'
// }
function add(product) {
    console.log(product.title);
}
add({
    title: '香蕉',
    price: 18,
    num: 1,
    ischecked: true,
    shop: '每日优鲜',
    mark: '3点收'
});
// function compareFun(num1:number,num2:number):boolean{
//     return num1>num2
// }
var compareFun = function (n1, n2) {
    return n1 > n2;
};
compareFun(1, 2);
var box = {
    color: 'red',
    width: 12,
    height: 10,
    long: 10
};
//狗
var Dog = /** @class */ (function () {
    function Dog(name) {
        this.name = name;
    }
    Dog.prototype.eat = function (thing) {
        console.log(this.name + "\u5403" + thing);
    };
    return Dog;
}());
var taidi = new Dog('泰迪');
taidi.eat('狗粮');
//猫
var Cat = /** @class */ (function () {
    function Cat(name) {
        this.name = name;
    }
    Cat.prototype.eat = function (thing) {
        console.log(this.name + "\u5403" + thing);
    };
    return Cat;
}());
var wumao = new Cat('无毛猫');
wumao.eat('鱼');
